package com.lyf.design.learn.designmodel.facade.test;

/**
 * @AUTHOR LYF
 * @DATE 2022/6/8
 * @VERSION 1.0
 * @DESC
 */
public class Main {
    public static void main(String[] args) {
        /**
         * new emp work needs:
         * register -- require.. and so on
         *
         */
        Employee employee = new Employee();
        HrDepartment hrDepartment= new HrDepartment();
        TechDepartment techDepartment = new TechDepartment();
        hrDepartment.register(employee);
        techDepartment.requireEquipment(employee);

        //-------------------------------------------


        EmployeeFacade employeeFacade = new EmployeeFacade();
        employeeFacade.register(employee);
        employeeFacade.requireEquipment(employee);


        //-----------------connection reps clain---------------------------






    }
}
